//
//  CalculatorInputCell.m
//  tristana
//
//  Created by neobug on 2021/1/13.
//  Copyright © 2021 李康. All rights reserved.
//

#import "CalculatorInputCell.h"

@interface CalculatorInputCell ()
@property (weak, nonatomic) IBOutlet UILabel *lbl_title;
@property (weak, nonatomic) IBOutlet UITextField *field_input;
@property (weak, nonatomic) IBOutlet UIImageView *img_more;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *field_tralling;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *lineHeight;

@end

@implementation CalculatorInputCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
//    self.field_tralling.constant = -20;
}


#pragma mark - Public Method

#pragma mark - Life Cycle

#pragma mark - Data Query

#pragma mark - Notification

#pragma mark - UI

#pragma mark - Delegate

#pragma mark - Private Method

#pragma mark - Overwrite Method

#pragma mark - Event Response

#pragma mark - Setter
- (void)setModel:(CalModel *)model {
    _model = model;
    self.lbl_title.text = model.title;
    self.model.content = model.content;
    self.lineHeight.constant = model.lineHeight.floatValue;
    
    if ([model.type isEqualToNumber:@1]) {
        self.lbl_title.font = [UIFont systemFontOfSize:20];
        self.field_tralling.constant = -20;
    }else if ([model.type isEqualToNumber:@2]) {
        self.lbl_title.font = [UIFont systemFontOfSize:217];

        self.field_tralling.constant = -20;
    }else if ([model.type isEqualToNumber:@3]) {
        self.lbl_title.font = [UIFont systemFontOfSize:17];
        self.field_tralling.constant = 10;
    }
}
#pragma mark - Getter


@end
